package com.item.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.RequiredArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
//@RequiredArgsConstructor
public class Vehicle implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer vid;

    private String brand;

    private String styleType;

    private String annualPayment;

    private Integer transmission_type;

    private String number;

    private String boxType;

    private String displacement;

    private Integer vehicle_image;

    private String numberPlate;

    private Integer store;

    private Integer vehicle_status;

    private Double price;

    private Double deposit;

    @TableField(exist = false)
    private Picture picture;

    @TableField(exist = false)
    private Shop shop;

    public Vehicle(Integer vid, Integer vehicle_status) {
        this.vid = vid;
        this.vehicle_status = vehicle_status;
    }
}
